package com.briup.jd2511.jd2511_product_source.service;

import com.briup.jd2511.jd2511_product_source.exception.ServiceException;
import com.briup.jd2511.jd2511_product_source.pojo.QuarantineRegistration;
import com.github.pagehelper.PageInfo;

public interface QuarantineRegistrationService {

    /**
     * 分页+条件查询检疫记录
     * @param pageName
     * @param pageSize
     * @param grMechanism 检疫机构
     * @param bQualified 检疫结果
     * @return
     */
    PageInfo<QuarantineRegistration> findByPage(Integer pageName, Integer pageSize, String grMechanism, String bQualified);

    /**
     * 添加/修改检疫登记信息
     * @param qr
     */
    void saveOrUpdate(QuarantineRegistration qr) throws ServiceException;
}
